package test;

public class test1 implements Runnable{
    public static void main(String[] args) {
        Thread t1=new Thread(new test1());
        Thread t2=new Thread(new test1());
        Thread t3=new Thread(new test1());

        t1.start();
        t2.start();
        t3.start();
    }

    @Override
    public void run() {
        String name = Thread.currentThread().getName();
        for (int i = 0; i < 5; i++) {
            System.out.println(name + "正在执行第" + (i + 1) + "次");
        }
    }
}
